Skip to content

Optimize special functions with help of JMP_FRAMELESS#18592

Draft
ndossche wants to merge 1 commit into
php:masterfrom
ndossche:frameless-jmp-trick
Draft

Optimize special functions with help of JMP_FRAMELESS#18592
ndossche wants to merge 1 commit into
php:masterfrom
ndossche:frameless-jmp-trick

Conversation

@ndossche

Copy link
Copy Markdown
Member

Semi-blocked by #18591

Comment thread Zend/zend_compile.c
// zend_result (*handler)(znode *, zend_ast_list *);
} zend_special_func;

static const zend_special_func zend_special_func_compile_handlers[] = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a comment with the definition of the explicitly listed functions, ie. what they need to meet and if not all are listed, why only smaller subset is listed.

@iluuu1994

Copy link
Copy Markdown
Member

Nice! The idea makes sense to me. JMP_FRAMELESS is unfortunately a bit of a misnomer.

@ndossche

Copy link
Copy Markdown
Member Author

Nice! The idea makes sense to me. JMP_FRAMELESS is unfortunately a bit of a misnomer.

It's only a 0.16% diff on Valgrind ICount, so I'm not sure this is worth pursuing. Although some tests fail so perhaps something is still missed where the optimization is unoptimal, but it's already an indication this won't be a big win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants